﻿<template id="single_table_editor_template">
    <el-table-column v-bind="$attrs" :property="prop">
        <template #default="scope">
            <slot v-if="scope.row.isEdit" v-bind="scope"></slot>
            <slot v-else name="text" v-bind="scope">{{scope.row[prop]}}</slot>
        </template>
    </el-table-column>
</template>
<script type="text/javascript">
    var single_table_editor = {
        template: "#single_table_editor_template",
        name: "ElTableColumnEditor",
        data() {
            return {}
        },
        props: ["prop"],
        methods: {
            init() { }
        },
        mounted() { this.init(); }
    };
</script>